package com.sky.service.impl;

import lombok.SneakyThrows;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author : xiongke
 * @Description:
 * @Date: 2024/9/23
 */
@Service
public class TestServiceImpl {

    @SneakyThrows
    public List getName(){
        Thread.sleep(1000 * 5);
        ArrayList<Object> list = new ArrayList<>();
        list.add("xiaoming");
        list.add("zhangsan");
        list.add("lisi");
        return list;
    }

    @SneakyThrows
    public List getAge(){
        Thread.sleep(1000 * 5);
        ArrayList<Object> list = new ArrayList<>();
        list.add("12");
        list.add("10");
        list.add("3");
        return list;
    }

    @SneakyThrows
    public List getSex(){
        Thread.sleep(1000 * 5);
        ArrayList<Object> list = new ArrayList<>();
        list.add("男");
        list.add("女");
        list.add("男");
        return list;
    }

}
